﻿using System;
using System.Windows.Forms;
using Flexdev.Wcf.Extensions.ClientSample.SimpleService;

namespace Flexdev.Wcf.Extensions.ClientSample
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();            
        }

        private void btnSimpleService_Click(object sender, EventArgs e)
        {
            SimpleServiceClient proxy = new SimpleServiceClient();
            proxy.ClientCredentials.UserName.UserName = "rodrigo";
            proxy.ClientCredentials.UserName.Password = "teste";
            MessageBox.Show(proxy.DoWork());
        }
    }
}
